﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using WalkingTec.Mvvm.Core;
using System.Text.Json.Serialization;
using TyMES.Model;

namespace TyMES.Model.BaseInformation
{
    /// <summary>
    /// 工艺路线管理
    /// </summary>
	[Table("Routes")]
    [SoftKey(nameof(Route.RouteCode))]
    [Display(Name = "_Model.Route")]
    public class Route : TopBasePoco
    {
        [Display(Name = "_Model._Route._RouteCode")]
        [StringLength(100, ErrorMessage = "Validate.{0}stringmax{1}")]
        [Comment("工艺路径编码")]
        [CanNotEdit]
        public string RouteCode { get; set; }
        [Display(Name = "_Model._Route._RouteName")]
        [StringLength(100, ErrorMessage = "Validate.{0}stringmax{1}")]
        [Comment("工艺路径名称")]
        public string RouteName { get; set; }
        [Display(Name = "_Model._Route._RouteVersion")]
        [StringLength(100, ErrorMessage = "Validate.{0}stringmax{1}")]
        [Comment("工艺路径版本")]
        public string RouteVersion { get; set; }
        [Display(Name = "_Model._Route._ProductCode")]
        [StringLength(100, ErrorMessage = "Validate.{0}stringmax{1}")]
        [Comment("产品编号")]
        public string ProductCode { get; set; }
        [Display(Name = "_Model._Route._Field2")]
        [StringLength(100, ErrorMessage = "Validate.{0}stringmax{1}")]
        [Comment("预留域2")]
        public string Field2 { get; set; }
        [Display(Name = "_Model._Route._Field3")]
        [StringLength(100, ErrorMessage = "Validate.{0}stringmax{1}")]
        [Comment("预留域3")]
        public string Field3 { get; set; }
        [Display(Name = "_Model._Route._Field4")]
        [StringLength(100, ErrorMessage = "Validate.{0}stringmax{1}")]
        [Comment("预留域4")]
        public string Field4 { get; set; }
        [Display(Name = "_Model._Route._Field5")]
        [StringLength(100, ErrorMessage = "Validate.{0}stringmax{1}")]
        [Comment("预留域5")]
        public string Field5 { get; set; }

	}

}
